home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Bus / C / Commander Demo / Commander Demo.rsrc / TEXT_5027_ARRAY TO LIST.txt < prev    next >
Encoding:
Text File  |  1993-09-07  |  1.2 KB  |  26 lines

  1. ARRAY¬†TO¬†LIST (array; list; {linked array})
  2.                                                                                     Pg 13-10
  3.  
  4. array              Array       Array to copy to the list
  5. list                  String       List to which to copy the array
  6. linked array    Array        Names of linked lists
  7.  
  8.  
  9. ARRAY TO LIST copies array to list. Array must be of type Text or String.
  10.  
  11. If list does not exist, it is created. If list already exists, array is copied to list thereby replacing the old list.
  12.  
  13. The array, linked array, is used to link lists to each element in array. If an element of the linked array is not the empty string, then the name in the element is used to link a list to the corresponding item in the list. If that item is not a valid list name, then the link is not established.
  14.  
  15. ARRAY TO LIST generates the error -9957 when it is applied on a list which is opened in the Design environment and contains the cursor.
  16.  
  17.  
  18. The following example copies an array called aRegions into a list called Regions. An array called Links is used to specify the linked lists:
  19.  
  20.        ARRAY TO LIST (aRegions; "Regions"; Links)
  21.  
  22.  
  23.  
  24. See also:  ARRAY¬†TO¬†SELECTION, LIST¬†TO¬†ARRAY
  25.  
  26.